#include "resource/resourcemanager.h"
#include "resource/texture.h"
#include "resource/texture/textureloader.h"
#include <assert.h>

using namespace kraw;

void testSetup()
{
	ResourceManager::init();
}

void testNewResource()
{
	TextureLoader* loader = TextureLoader::create("texture1.png");
	Texture* texture = resourcemgr->load<Texture>(loader);
	assert(texture);
}

//void testExistingResource()
//{
//	TextureLoader* loader = TextureLoader::create("texture1.png");
//	Texture* texture1 = resourcemgr->load<Texture>(loader);
//	Texture* texture2 = resourcemgr->load<Texture>(loader);
//	assert(texture1 == texture2);
//}
